﻿using MediatR;
using MyMES.Domain.zmc;
using MyMES.Error;

namespace MyMES.Writer.API.Application.Commends.Productionorderss
{
    public record CreateProductionordersCommends: IRequest<APIResult<Productionorders>>
    {
  
        public int ProductionordersId { get; set; }

        /// <summary>
        /// 生产单号编号
        /// </summary>
        public string ProductionordersNo { get; set; }

        /// <summary>
        /// 生产单号名称
        /// </summary>
        public string ProductionordersName { get; set; }

        /// <summary>
        /// 生产主题
        /// </summary>
        public string Topic { get; set; }

        /// <summary>
        /// 负责人
        /// </summary>
        public string Head { get; set; }

        /// <summary>
        /// 所在部门
        /// </summary>
        public string Department { get; set; }

        /// <summary>
        /// 生产单状态   1：进行中  2：已完成
        /// </summary>
        public bool ProductionordersStatus { get; set; }

        /// <summary>
        /// 计划开始时间
        /// </summary>
        /// 
        public DateTime PlanStartTime { get; set; }
  

        /// <summary>
        /// 计划结束时间
        /// </summary>
        public DateTime PlanEndTime { get; set; }

        /// <summary>
        /// 计划产量
        /// </summary>

        public string yield { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 删除标志位
        /// </summary>
        public bool IsDelete { get; set; } = false;

        /// <summary>
        /// 生产物品表StoresId
        /// </summary>
        public int MId { get; set; }

        /// <summary>
        /// 生产工单主键
        /// </summary>
        public int WorkOrderId { get; set; }

        /// <summary>
        /// 工单日期
        /// </summary>
        public DateTime ProductionordersTime { get; set; }


        /// <summary>
        /// 工序
        /// </summary>

        public int ProcessID { get; set; }


        public List<int> ProcessIDs { get; set; } = new List<int>();
    }
}
